﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using UnityEditor;

[CustomEditor(typeof(TrackableGroupLoadBehaviour))]
public class TrackableGroupLoadEditor : Editor
{
    public void OnEnable()
    {
        if (!SceneManager.Instance.InitDone)
        {
            SceneManager.Instance.Init();
        }
    }

    public override void OnInspectorGUI()
    {
        TrackableGroupLoadBehaviour groupLoader = (TrackableGroupLoadBehaviour)target;

        if (GUI.changed)
        {
            EditorUtility.SetDirty(groupLoader);
        }
    }
}
